/*
 * 文件名：CustManagerDao.java
 * 版权：Copyright by www.wootide.com
 * 描述：
 * 修改人：Administrator
 * 修改时间：2013-2-21
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */
package com.wootide.cms.service.customer.custmanager.dao;

import com.wootide.cms.common.Page;
import com.wootide.cms.common.QueryCondition;
import com.wootide.cms.common.QueryResults;
import com.wootide.cms.service.customer.custmanager.pojo.ClientLevel;
import com.wootide.cms.service.customer.custmanager.pojo.Customer;

public interface CustManagerDao
{
    /**
     * Description: 分页查询<br>
     * Implement: <br>
     * @param page
     * @param queryConditon
     * @return
     * @see
     * @return QueryResults
     * @author Administrator
     */
    public QueryResults queryForPages(Page page, QueryCondition queryConditon);
    
    /**
     * Description: 增加新客户<br>
     * Implement: <br>
     * @param customer
     * @see
     * @return void
     * @author Administrator
     */
    public void addOneCustomer(Customer customer);
    
    Customer findOneCustomerByCustomerById(Integer customerId);
    
    public QueryResults queryCustomerLevel(QueryCondition queryConditon);
    
    Customer findCustomerByCustomerId(Integer customerId);
    
    Customer findOneCustomerByCustomerId(Integer customerId);
    
    ClientLevel findOneLevelByClientLevelId(Integer clientLevelId);
    /**
     * 通过姓名和电话查询客户信息
     * Description: <br>
     * Implement: <br>
     * @param customer 客户信息条件
     * @return
     * @see
     * @return Customer 查询到的客户信息
     * @author ozm2013-3-28下午6:48:09
     */
    Customer findOneCustomerByNameAndPhoneOrCardNo(Customer customer);
    
    int findCustomerNumByCardNo(Long long1);
}
